package com.shanzmoo.core.domain.pay;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 支付结果查询响应
 * @author Gzhao
 * @date 2020/12/12
 */
@Data
@Accessors(chain = true)
@ApiModel("支付结果响应")
public class PayResultResp {

    @ApiModelProperty("是否支付成功")
    private boolean success;

    @ApiModelProperty("支付结果描述")
    private String msg;

    public static PayResultResp createSuccess() {
        return new PayResultResp().setSuccess(true).setMsg("支付成功");
    }

    public static PayResultResp createFail(String msg) {
        return new PayResultResp().setSuccess(false).setMsg(msg);
    }
}
